UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Ubuntu 22.04 LTS must prevent direct login into the root account.


Overview

Finding ID Version Rule ID IA Controls Severity
V-260542 UBTU-22-411010 SV-260542r986277_rule Medium
Description
To ensure individual accountability and prevent unauthorized access, organizational users must be individually identified and authenticated. A group authenticator is a generic account used by multiple individuals. Use of a group authenticator alone does not uniquely identify individual users. Examples of the group authenticator is the Unix OS "root" user account, the Windows "Administrator" account, the "sa" account, or a "helpdesk" account. For example, the Unix and Windows operating systems offer a "switch user" capability allowing users to authenticate with their individual credentials and, when needed, "switch" to the administrator role. This method provides for unique individual authentication prior to using a group authenticator. Users (and any processes acting on behalf of users) must be uniquely identified and authenticated for all accesses other than those accesses explicitly identified and documented by the organization, which outlines specific user actions that can be performed on the operating system without identification or authentication. Requiring individuals to be authenticated with an individual authenticator prior to using a group authenticator allows for traceability of actions, as well as adding an additional level of protection of the actions that can be taken with group account knowledge.
STIG Date
Canonical Ubuntu 22.04 LTS Security Technical Implementation Guide 2024-05-30

Details

Check Text ( C-64271r953437_chk )
Verify Ubuntu 22.04 LTS prevents direct logins to the root account by using the following command:

$ sudo passwd -S root
root L 08/09/2022 0 99999 7 -1

If the output does not contain "L" in the second field to indicate the account is locked, this is a finding.
Fix Text (F-64179r953438_fix)
Configure Ubuntu 22.04 LTS to prevent direct logins to the root account by using the following command:

$ sudo passwd -l root